<?php
/**
 * @package admin
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: categories.php 4809 2006-10-22 18:53:22Z ajeh $
 */

// $Id:AJAX_image_swapper.php,v1.0 2007/10/08 Jaycode jay@webextremecustomiser.com$
require('includes/application_top.php');
require(DIR_WS_MODULES . FILENAME_AJAX_PREV_NEXT);
?>

<?php

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
<link rel="stylesheet" type="text/css" href="includes/cssjsmenuhover.css" media="all" id="hoverJS">
<link rel="stylesheet" type="text/css" href="includes/styles_ajax_image_swapper.css">
<script language="javascript" src="includes/menu.js"></script>
<script language="javascript" src="includes/general.js"></script>
<script type="text/javascript">
<!--
function init()
{
  cssjsmenu('navbar');
  if (document.getElementById)
  {
    var kill = document.getElementById('hoverJS');
    kill.disabled = true;
  }
  if (typeof _editor_url == "string") HTMLArea.replaceAll();
}
// -->
</script>
<script language="javascript" src="includes/javascript/AJAX_image_swapper.js"></script>
<?php if ($action != 'edit_category_meta_tags') { // bof: categories meta tags ?>
<?php if ($editor_handler != '') include ($editor_handler); ?>
<?php } // meta tags disable editor eof: categories meta tags?>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onLoad="init();selectCategoryID()">
<div id="spiffycalendar" class="text"></div>
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<div id="mainContent">
<h1>AJAX 图片管理 v1.2</h1><br />
<div id="imageManager">
	选择分类: 
	<?php require(DIR_WS_MODULES . FILENAME_AJAX_PREV_NEXT_DISPLAY); ?>
	<br /><br />
	商品名称: 
	<select id="productID" onchange="selectProductID()">
	<option value="1">--请选择分类--</option>
	</select>
	<br /><br />
	设置该选项的商品图片
	<select id="attributeID" onchange="selectAttributeID()" value="请选择商品">
		<option value="1">--请选择商品--</option>
	</select>
	<br /><br />
	选项值
	<select id="optionID" onchange="selectOptionID()" value="请选择属性">
		<option value="1">--请选择选项名--</option>
	</select>
	<br /><br />
	<div id="imagesDisplay">
		已选属性的图片:<br />
		<select id="imageList" size="13" style="width:200px;" onchange="selectImage();">
			<option value="1">--请选择选项值--</option>
		</select>
		<br />
		<input id="delete" type="button" name="delete" value="Delete" onclick="delImage()" />
		显示顺序: <input id="order" type="text" name="order" size="2"/>
		<!--<input id="setOrder" type="button" name="setOrder" value="Set Order" onclick="setOrder()" />-->
		<br class="clearBoth" /><br />
		图片标题:
		<input id="newTitle" type="text" name="newTitle" size="10"/>
		<input id="update" type="button" name="update" value="Update" onclick="update()" />
	</div>
	<div id="controls">
	</div>
</div>
<div id="imageDisplay">
</div>
	<br class="clearBoth" />
</div>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br />
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>